<?php
/**
 * The Access
 * 
 * @author Shuky
 * @since v1.0
 * @version $Id: index.php 88 2011-01-05 19:08:15Z shukyoo@gmail.com $
 */
// Time Start
$tmStart = microtime(true);


// 环境初始
header("content-Type: text/html; charset=UTF-8");
error_reporting(E_ALL);
ini_set('date.timezone', 'Asia/Shanghai');
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
session_start();


// Set the initial include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(dirname(__FILE__) . '/../../../libs'),
    get_include_path(),
)));


// 定义根路径
define('APP_PATH', realpath(dirname(__FILE__) .'/../'));


// 框架和分发
require 'SF/Main.php';
require APP_PATH .'/configs/main.conf.php';
\SF\Router::getInstance()->dispatch();



// Time End
$tmEnd = microtime(true);
echo '<br /><br />', $tmEnd - $tmStart;